package com.g.ocache.event;

/**
 * 
 * @author Jingqi Xu
 */
public interface StoreEventPublisher<K, V> {

	/**
	 * 
	 */
	boolean isRunning();
	
	void start() throws Exception;
	
	void stop() throws Exception;
	
	/**
	 * 
	 */
	void publish(StoreEvent<K, V> event);
	
	boolean addStoreEventListener(StoreEventListener<K, V> listener);
	
	boolean removeStoreEventListener(StoreEventListener<K, V> listener);
}
